package org.apache.commons.codec.language.bm;

import java.util.Collections;
import java.util.Comparator;
import org.apache.commons.codec.language.bm.Rule.PhonemeExpr;

public final class e implements PhonemeExpr {
    public static final Comparator a = new Comparator() {
        public int a(e eVar, e eVar2) {
            for (int i = 0; i < eVar.b.length(); i++) {
                if (i >= eVar2.b.length()) {
                    return 1;
                }
                int charAt = eVar.b.charAt(i) - eVar2.b.charAt(i);
                if (charAt != 0) {
                    return charAt;
                }
            }
            return eVar.b.length() < eVar2.b.length() ? -1 : 0;
        }

        public /* synthetic */ int compare(Object obj, Object obj2) {
            return a((e) obj, (e) obj2);
        }
    };
    private final CharSequence b;
    private final b c;

    public e(CharSequence charSequence, b bVar) {
        this.b = charSequence;
        this.c = bVar;
    }

    public Iterable getPhonemes() {
        return Collections.singleton(this);
    }
}
